-- GENERATED SPELL FOR [Vengeful Husk] --


function spell0_22045(pUnit, Event) --@Debilitating Strike,n/a--
pUnit:FullCastSpellOnTarget(38621,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22045', 674, 1)
end

function Sorts_22045(pUnit, Event)
local choix_sorts_22045 = math.random(0, 0)
if choix_sorts_22045 == 0 then
pUnit:RegisterEvent('spell0_22045', 1, 1)
end
end

function mob22045_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22045', math.random(1500, 3000), 1)
end

function mob22045_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22045_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22045_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22045, 1, 'mob22045_Action')
RegisterUnitEvent(22045, 2, 'mob22045_Leave')
RegisterUnitEvent(22045, 3, 'mob22045_Kill')
RegisterUnitEvent(22045, 4, 'mob22045_Die')
